package com.tchy.cloud.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xmweilove
 * 分平台信息
 */
@Entity
@Table(name = "c_platform", schema = "", catalog = "")
public class CPlatformEntity {
    private Integer platformId;//主键
    private String name;//名称
    private String platformCode;//平台编码
    private String platformkey;//平台key
    private String platformSecret;//平台密钥
    private Integer open;//是否开放
    private Date createTime;//创建时间

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "platform_id")
    public Integer getPlatformId() {
        return platformId;
    }

    public void setPlatformId(Integer platformId) {
        this.platformId = platformId;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "platform_code")
    public String getPlatformCode() {
        return platformCode;
    }

    public void setPlatformCode(String platformCode) {
        this.platformCode = platformCode;
    }

    @Basic
    @Column(name = "platform_key")
    public String getPlatformkey() {
        return platformkey;
    }

    public void setPlatformkey(String platformkey) {
        this.platformkey = platformkey;
    }

    @Basic
    @Column(name = "platform_Secret")
    public String getPlatformSecret() {
        return platformSecret;
    }

    public void setPlatformSecret(String platformSecret) {
        this.platformSecret = platformSecret;
    }

    @Basic
    @Column(name = "open")
    public Integer getOpen() {
        return open;
    }

    public void setOpen(Integer open) {
        this.open = open;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
